package com.sc.nft.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.CollectionOriginalTypeEnum;
import com.sc.nft.enums.ReceivedCollectionType;
import com.sc.nft.enums.UserChainLogStatusEnum;
import com.sc.nft.enums.UserChainTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 藏品链操作轨迹表(sc_user_collection_chain_log)实体类
 *
 * @author kancy
 * @since 2022-10-21 00:45:21
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_user_collection_chain_log")
public class UserCollectionChainLog extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户Id
     */
    private Long userId;
    /**
     * DaoId
     */
    private Long daoId;
    /**
     * 用户藏品Id
     */
    private Long userCollectionId;
    /**
     * 藏品类型
     */
    private ReceivedCollectionType collectionType;
    /**
     * 动作
     */
    private UserChainTypeEnum type;
    /**
     * 状态
     */
    private UserChainLogStatusEnum status;
    /**
     * 藏品Id
     */
    private Long collectionId;
    /**
     * 合约地址
     */
    private String contractAddress;
    /**
     * 合约部署交易哈希
     */
    private String deployTransactionHash;
    /**
     * 铸造交易哈希
     */
    private String transactionHash;
    /**
     * 商家数字商品ID数组

     */
    private String productId;
    /**
     * 所属者地址
     */
    private String address;
    /**
     * tokenId
     */
    private Integer tokenId;
    /**
     * 来源用户Id
     */
    private Long fromUserId;
    /**
     * 来源用户藏品Id
     */
    private Long fromUserCollectionId;
    /**
     * 来源用户地址
     */
    private String fromUserAddress;
    /**
     * 目标用户Id
     */
    private Long toUserId;
    /**
     * 目标用户藏品Id
     */
    private Long toUserCollectionId;
    /**
     * 目标用户地址
     */
    private String toUserAddress;

    /**
     *  藏品上链表id
     */
    private Long collectionChainId;

}